package com.dgf.sentinel;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestNacosController {

//    @Value("${name}")
//    private String name;   //从nacos的配置中心获取值

    @RequestMapping("/config")
    public String hello() {
//        try {
//            Thread.sleep(1000);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
        return "hello " + "aa";
    }
}